home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 10 - 1994 / 10.07 Jul 94 / PoweringUp < prev   
Encoding:
Text File  |  1994-06-16  |  318 b   |  15 lines  |  [TEXT/ttxt]

  1. int i;
  2. long nextTime;
  3.  
  4. nextTime = TickCount() + 15;    // Now + 15/60 second (1/4 second)
  5. for (i = 0; i <= 10000; i++) {
  6.     if (TickCount() >= nextTime) {
  7.         GiveAwayTime();        // my routine to spin the cursor &
  8.                         // call WaitNextEvent
  9.         nextTime += 15;        // wait another 1/4 second before
  10.                         // giving away time
  11.     }
  12. }
  13.  
  14.  
  15.